package com.daoliuhe.scaffold.service;


import com.daoliuhe.scaffold.model.Authorities;

import java.util.List;
import java.util.Map;

public interface AuthoritiesService {

	Authorities getById(String id);
	
	void saveOrUpdate(Authorities auth);
	
	Map<String, Object> getPageData(Authorities auth);
	
	
	/**
	 * 获取所有的权限
	 * @param auth
	 * @return
	 */
	List<Authorities> getAuthoritiesList(Authorities auth);
	
	boolean isRightApi(String permission, String id);
	
}
